package com.yonyou.gmmc.service.points.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yonyou.gmmc.common.annotation.OracleDb;
import com.yonyou.gmmc.service.points.model.TmCoupon;
import tk.mybatis.mapper.common.Mapper;
@OracleDb
public interface TmCouponMapper extends Mapper<TmCoupon> {
	
	/**
	 * 获取优惠券列表
	 * @return
	 */
	public  List<Map<String, Object>> queryCouponList(@Param("id") Integer id,@Param("status") String status);
	/**
	 * 获取优惠券数量
	 * @param map
	 * @return
	 */
	public Integer queryCouponNum(Map<String,Object> map);
	/**
	 * 获取优惠券
	 * @param userId
	 * @return
	 */
	public  List<Map<String, Object>> getCoupon(@Param("batchId") String batchId);
}